import { RouteRecordRaw, RouterView } from 'vue-router'

const homeRouter: RouteRecordRaw[] = [
  {
    path: '/label',
    component: RouterView,
    redirect: '/home/models',
    meta: {
      title: '标注',
      icon: 'HomeFilled',
    },
    children: [
      {
        path: 'segment/:id',
        name: 'LabelSegment',
        component: () => import('@/views/label_segment/index.vue'),
        meta: {
          title: '分割标注',
          icon: 'Briefcase',
          hidden: true,
        },
      },
      {
        path: 'point/:id',
        component: () => import('@/views/label_point/index.vue'),
        name: 'LabelPoint',
        meta: {
          title: '打点标注',
          icon: 'Briefcase',
          hidden: true,
        },
      },
    ],
  },
]

export default homeRouter
